#ifndef _CHATBOX_
#define	_CHATBOX_

#include <string>
#include <deque>
#include "Graphics/Graphics.hpp"
#include "../NetworkHandler.hpp"
#include "Graphics/UI/UI.hpp"

class ChatBox: public Panel{
private:
    TextBox inputBox;
    ScrollPanel* textPanel;
    StackPanel* textContainer;
    deque<Label*> messages;
    sf::RectangleShape background;
    sf::RectangleShape inputSeparator;
public:
    ChatBox();
    virtual bool trapped(InterfaceEvent* event);
    void pushMessage(std::string message);
    std::string getText();
    void clearText();
    TextBox* getTextBox();
    ~ChatBox();
};


#endif

